<template>
    <li>
        <img :src="store.logo" alt="">
        <p v-if="store.isShenQuan" class="shenQuan">神券</p>
        <h3>{{store.name}}</h3>
        <br>
        <p class="pingFen">{{store.assessScore===0?"暂无评分":store.assessScore+"分"}}</p>
        <p class="yueShou">月售
            {{store.monthSale<=100?store.monthSale:
            String(store.monthSale).split("").fill(0,1).join("")+"+"
            }}
        </p>
        <p class="renJun">人均￥{{store.personalAverage}}</p>
        <p class="qiSong">起送约￥{{store.qiSong}}</p>
        <p class="peiShi">
            配送时间{{store.peiSongTime<=60?store.peiSongTime+"分":~~(store.peiSongTime/60)+"时"+store.peiSongTime%60+"分"}}
        </p>
        <p class="peiJu">
            配送距离{{store.distance<=1000?store.distance+"m":(store.distance/1000).toFixed(1)+"km"}}
        </p>
        <p class="touXian" v-if="store.title!==''">
            {{store.title}}
        </p>
        <p v-else>
            {{store.hotAssess}}
        </p>
    </li>
</template>

<script>
    export default {
        name: "StoresItem",
        props:["store"]
    }
</script>

<style scoped>
    p{
        margin: 0;
        padding: 0;
    }
    li{
        background: #fff;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    li>div{
        float: left;
    }
    h3{
        margin: 0;
        padding: 0;
        font-size: 16px;
        float: left;
/*        text-overflow: ellipsis;
        white-space: nowrap;
        width: 50vw;
        overflow: hidden;*/
<<<<<<< HEAD

=======
>>>>>>> 3ec4e68ee99058a6be65f4d028989634d5d619c7
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 50vw;
        overflow: hidden;
    }
    .pingFen{
        font-size: 12px;
        color: lightsalmon;
    }
    .yueShou{
        display: inline-block;

        font-size: 12px;
        color: #aca9a9;
        margin-right: 10px;
    }
    img {
        width: 110px;
        height: 105px;
        float: left;
        margin-right: 10px;
        border-radius: 10px;
    }
    .shenQuan{
        float: left;
        background: #fc7171;
        border-radius: 5px;
        font-size: 14px;
        margin-right: 5px;
    }
    .renJun{
        display: inline-block;
        font-size: 12px;
        color: #aca9a9;
    }
    .peiShi{
        font-size: 12px;
        color: #aca9a9;
   }
    .qiSong{
        font-size: 12px;
        color: #aca9a9;
    }
    .peiJu{
        font-size: 12px;
        color: #aca9a9;
   }

</style>
